var app = getApp();
Page({
  onReady() {
    this.liveCtx = wx.createLivePlayerContext('myLive')
  },
  play() {
    console.log("play");
    this.setData({
      live_play_url:"http://flv5ac3fc7c.live.126.net/live/95d4f79e55c242f68e6bc412543dcd49.flv?netease=flv5ac3fc7c.live.126.net"
    })
    this.liveCtx.play();
  },
  stop() {
    console.log("stop")
    this.liveCtx.stop()
  },
  requestFullScreen(){
    console.log("requestFullScreen")
    this.liveCtx.requestFullScreen({
      direction:90,
      success:()=>{console.log(arguments)},
      fail:()=>{console.log(arguments)},
      complete: () => { console.log(arguments) }
    })
  }
})